import UserApi from "../api/users.js"
export default () => {
    $.ajaxSetup({
        beforeSend(jqXHR) {
            const token = UserApi.getToken();
            token && jqXHR.setRequestHeader("authorization", `Bearer ${token}`);
        }
    })
}
